//#include "Arduino.h"
#include "Mario.h"
extern prog_uint16_t mario_1[0x200];
extern prog_uint16_t mario_2[0x200];
extern prog_uint16_t mario_back_1[0x200];
extern prog_uint16_t mario_back_2[0x200];
extern prog_uint16_t jump_1[0x200];
extern prog_uint16_t jump_2[0x200];
extern prog_uint16_t jump_back_1[0x200];
extern prog_uint16_t jump_back_2[0x200];
extern prog_uint16_t sit_down[0x200];
extern prog_uint16_t sit_down_back[0x200];
extern prog_uint16_t grass[0x100];
extern prog_uint16_t mud[0x100];

Mario::Mario(UTFT* myScene,int width,int height)
{
  prog_uint16_t* mario_stand_left = mario_1;
  prog_uint16_t* mario_stand_right = mario_2;

  prog_uint16_t* mario_move_left = mario_back_1;
  prog_uint16_t* mario_move_right = mario_back_2;

  prog_uint16_t* mario_jump_up = jump_1;
  prog_uint16_t* mario_jump_down = jump_2;
  prog_uint16_t* mario_jump_up_left = jump_1;
  prog_uint16_t* mario_jump_down_left = jump_2;
  prog_uint16_t* mario_jump_up_right = jump_back_1;
  prog_uint16_t* mario_jump_down_right = jump_back_2;

  prog_uint16_t* mario_sit_down_left = sit_down;
  prog_uint16_t* mario_sit_down_right = sit_down_back;

  prog_uint16_t* img[] = { 
    mario_stand_left,mario_stand_right,
    mario_move_left,mario_back_2,
    mario_jump_up, mario_jump_down,
    mario_jump_up_left,mario_jump_down_left,
    mario_jump_up_right,mario_jump_up_right,
    mario_sit_down_left,mario_sit_down_right  };
  Serial.println("Mario ok...");
  Mario(myScene,width,height,img);
};

Mario::Mario(UTFT* myScene,int width,int height,prog_uint16_t** img):
Hero(myScene,width,height,img)
{
};

